Test Series - java script

Test Number 27/92

Q: The libraries that build a new higher-level API for client-side programming is ____________
A. Library
B. Framework
C. APIs
D. Script
Solution: Many web developers find it useful to build their web applications on top of a client side framework library. These libraries are “frameworks” in the sense that they build a new higher-level API for client-side programming on top of the standard and proprietary APIs offered by web browsers: once you adopt a framework, your code needs to be written to use the APIs defined by that framework.
Q: Which of the following is not a framework?
A. jQuery
B. .NET
C. JavaScript
D. Cocoa
Solution: One of the most popular frameworks is jQuery which is used in web development. Here, JavaScript is a scripting language and not a framework.
Q: Which of the following frameworks focuses on DOM and Ajax utilities?
A. jQuery
B. Prototype
C. Dojo
D. Both jQuery and Prototype
Solution: DOM stands for data object modulation. The Prototype library focuses on DOM and Ajax utilities like jQuery does, and adds quite a few core-language utilities as well.
Q: What is the purpose of the Dojo framework?
A. Focuses on DOM and Ajax utilities
B. Advertises incredible depth
C. Ajax utilities
D. Modular
Solution: The Dojo toolkit is an open-source modular toolkit containing a JavaScript library that is designed for rapidly creating JavaScript/Ajax-based websites and cross-platform applications. Dojo is a large framework that advertises its “incredible depth.” It includes an extensive set of UI widgets, a package system, a data abstraction layer, and more.
Q: Which is the in-house library of Yahoo!?
A. Dojo
B. YUI
C. Prototype
D. Closure
Solution: YUI is the in-house library of Yahoo!, and it is used on their home page. The Yahoo User Interface Library is a discontinued open-source JavaScript library for building richly interactive web applications using techniques such as Ajax, DHTML, and DOM scripting.
Q: What does Dojo and YUI have in common?
A. Facilitates DOM utilities and UI Widgets
B. Does not facilitates DOM utilities and UI Widgets
C. Client-side library
D. Server-side library
Solution: Like Dojo, it is a large, all-encompassing library with language utilities, DOM utilities, UI widgets, and so on. There are actually two incompatible versions of YUI, known as YUI 2 and YUI 3.
Q: What are the two incompatible versions of YUI?
A. YUI1 and YUI2
B. YUI2 and YUI4
C. YUI1 and YUI3
D. YUI2 and YUI3
Solution: YUI stands for yahoo user interface. Like Dojo, it is a large, all-encompassing library with language utilities, DOM utilities, UI widgets, and so on. There are actually two incompatible versions of YUI, known as YUI 2 and YUI 3.
Q: Which of the following framework was used by Google for Gmail?
A. Dojo
B. GWT
C. Closure
D. YUI
Solution: The Closure library is the client-side library that Google uses for Gmail, Google Docs, and other web applications. This library is intended to be used with the Closure compiler, which strips out unused library functions.
Q: Which of the following is a web application API framework?
A. Dojo
B. GWT
C. YUI
D. jQuery
Solution: GWT, the Google Web Toolkit defines a web application API in Java and provides a compiler to translate your Java programs into compatible client-side JavaScript whereas Google Closure Tools is a set of tools to help developers build rich web applications with JavaScript.
Q: Which is more widely used than GWT in Google?
A. Closure
B. Dojo
C. Procedure
D. jQuery
Solution: Google Closure Tools is a set of tools to help developers build rich web applications with JavaScript. GWT is used in some of Google’s products, but it is not as widely used as their Closure library.

You Have Score    /10